package myJs.user.mission.stampResult

import myJs.projectCps._
import myJs.tool.Tool
import myJs.user.mission.MissionResult
import org.scalajs.dom.document

import scala.scalajs.js.Dynamic.{global => g}
import scala.scalajs.js.annotation.{JSExport, JSExportTopLevel}


/**
 * Created by yz on 2019/4/25
 */
@JSExportTopLevel("StampResult")
object StampResult extends MissionResult {

  @JSExport("init")
  def init = {
    refreshMissionInfo(Tool.getMissionId)
    refreshFileInfo(Tool.getMissionId)
    registerEvent

    Cp.Props().render.renderIntoDOM(document.querySelector("#root"))

  }

}
